<template>
	<!-- #ifdef APP-PLUS -->
	<nav-bars backState="1000" bgColor="#fff" fontColor="#000" title="夺宝"></nav-bars>
	<!-- #endif -->
	<web-view :webview-styles="webviewStyles" :src="url"></web-view>
</template>

<script>


export default {
	
	data() {
		return {
		 url:'',
	     userId:"",
		}
	},
	onLoad(e) {
       this.$utils.getUrl()		
		let useid = uni.getStorageSync('userId')
		this.userId = useid
		let token = uni.getStorageSync('token')
		if(!token){
			uni.navigateTo({
				url: '/pages_login/pages/login/login/index',
			});
		}
		this.url = 'https://duobao.littlegood.cn/wap/index.php?user_id='+ useid + '&access_token=' + token
	},
	onShareAppMessage(res) {
		let that = this
		if (res.from === 'button') {}
		return {
		  title: '夺宝',
		  path: '/pages/home/index/index?share_uid='+ this.userId,
		  success: function (res) {
			
		  }
		}  
	},
	methods: {
		
		
	}
}
</script>

<style lang="scss" scoped>


</style>